var mongoose = require('mongoose')
var Schema = mongoose.Schema  //mongoose提供的用以定义表结构的对象
var stuSchema = new Schema({ // 创建一条具体的数据表实例对象
    name:String,
    score:Number,
    age:Number,
    gender:String,
    avatar:String,
    bool:Boolean
})

var stuModel = mongoose.model('stuModel',stuSchema) //定义用以操作对应数据表的，数据模型对象

module.exports = stuModel
